<%@ page contentType="application/vnd.ms-excel;charset=UTF-8"  language="java" import="java.util.*"%>
<%@page import="java.util.*"%>
<%@page import="com.infomanage.po.*"%>
<%@page import="com.infomanage.vo.*"%>
<%@page import="com.infomanage.enums.*"%>
<%@page import="com.infomanage.service.study.*"%>
<%  response.addDateHeader("Expires", 0);response.setHeader("Pragma","no-cache"); response.setHeader("Cache-Control","no-cache");%>
<%
	request.setCharacterEncoding("UTF-8");
	User user = (User) request.getSession().getAttribute(com.infomanage.util.Consts.LOGINED_USER);
	List<StudyPsychologyItem> items = StudyPsychologyService.search(request, response, out);
	int count = 0;
	if(items != null){
		count = items.size();
	}
	
	// 涓荤晫闈腑鏌ヨ鏉′欢
	String timestamp = request.getParameter("timestamp");
	if(timestamp == null) timestamp = "";
	String personId = request.getParameter("personId");
	if(personId == null) personId = "";
	
	// 褰撳墠椤靛彿
	String currPageNum = request.getParameter("currPageNum");
	if(currPageNum == null) currPageNum = "1";
	
	// 鎬绘�婚〉鏁�
	int totalPageSize = StudyPsychologyService.getPageCount(request, response, out);
%>
<html>
<head>
	<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
	<link href="../../css/style.css" rel="stylesheet" type="text/css">
	<script type="text/javascript" src="../../js/common.js"></script>
	<script type="text/javascript">
		function modifyItem(id) {
			var url = "psychometry_edit.jsp?itemId=" + id;
			var width = '650px';
			var height ='700px';
			var arg = "dialogHeight:" + height + ";dialogWidth:" + width + ";status:no;location:no;";
			var returnValue = window.showModalDialog(url, "", arg);
			if(returnValue != null){
				window.location.reload();
			}
		}

		function delItem(id) {
			if(window.confirm("纭畾鍒犻櫎鍚楋紵")){
				actionFrame.location.href = "psychometry_action.jsp?actionType=del&itemId=" + id;
			}
		}

		function viewItem(id){
			var url = "psychometry_view.jsp?itemId=" + id;
			var width = '650px';
			var height ='700px';
			var arg = "dialogHeight:" + height + ";dialogWidth:" + width + ";status:no;location:no;";
			var returnValue = window.showModalDialog(url, "", arg);
		}
		
	   function showError(error){
		   alert(error);
	   }

	   function showInfo(info){
		   if(info && info != "") {
		   		alert(info);
		   }
		   window.location.reload();
	   }
	</script>
</head>
<body rightmargin="0" bottommargin="0" leftmargin="0" topmargin="0">
<table width="100%" height="100%"  border="0" align="center" cellpadding="0" cellspacing="0" style="table-layout: fixed;background: #ffffff;">
	<tr height="29px">
        <td valign="middle" height="29px" class="td_title" style="padding-left:20px;border-right: 1px #a3c6e2 solid;">
        	浣╂満婕斾範璁粌
        </td>
    </tr>
    <tr>
    	<td valign="top">
    		 <table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0" class="tabMain">
    		 	
    		 	<col width="20%">
    		 	<col width="20%">
    		 	<col width="15%">
    		 	<col width="20%">
    		 
         		<tr class="thlist">
         	
         			<td>
         				闃熷埆
         			</td>
			    	<td>
			    		濮撳悕
			    	</td>
			    	<td>
			    		鏃ユ湡
			    	</td>
			    	<td>
			    		鍒嗘暟
			    	</td>
			    
         		</tr>
         		
         		<!-- 杈撳嚭鏁版嵁 -->
         		<tr valign="top">
         			<td colspan="7" width="100%">
         				<div style="width: 100%;height: 100%;overflow: auto;">
         					<table width="100%" cellpadding="0" cellspacing="0" class="altColorTable">
			    		 	
			    		 	<col width="20%">
			    		 	<col width="20%">
			    		 	<col width="15%">
			    		 	<col width="20%">
			    		 
				    		 	<%
				    		 		int i = -1;
				    		 		if(items != null) {
				    		 			for(StudyPsychologyItem item : items) {
				    		 				StudyPsychology bean = item.getBean();
				    		 				Department dept = item.getDept();
				    		 				Person person = item.getPerson();
				    		 				i++;
				    		 	%>
         						<tr class="tdlist">
         				
         							<td>
         								<%=dept.getPath()%>
         							</td>
         							<td>
         								<%=person.getName()%>
         							</td>
         							<td>
         								<%=bean.getTimestamp()%>
         							</td>
         							<td>
         								<%=bean.getScore()%>
         							</td>
         							
         						</tr>
				    		 	
				    		 	<%	
				    		 			}
				    		 		}
				    		 	%>
         					</table>
         				</div>
         			</td>
         		</tr>
         	 </table>
    	</td>
    </tr>
    
   
</table>
<iframe src="#" name="actionFrame" style="display: none;"></iframe>


</body>
</html>
